<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>drawer</title>
    <style>
        body{
            background-color: gray;
        }
        .menu_container{
            position: absolute;
            top: 0;
            left: 0;
            z-index: 9999;
            user-select: none;
        }
        .menu_container input{
            position: absolute;
            top: 100px;
            left: 400px;
            opacity: 1;
        }
        .menu_container .bt{
            position: absolute;
            top: 30px;
            left: 30px;
            width: 60px;
            height: 45px;
            z-index: 999;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            flex-direction: column;
        }

        .menu_container .bt span{
            position: relative;
            display: block;
            width: 100%;
            height: 9px;
            left: 0;
            background-color: #fff;
            border-radius: 9px;
            opacity: 1;
            transition: all 0.5s ease-in-out;
        }

        .menu_container input:checked ~ .bt span{
            background-color: #666;
        }

        .menu_container input:checked ~ .bt span:nth-child(1){
            transform: translateY(18px) rotate(-135deg);
        }
        .menu_container input:checked ~ .bt span:nth-child(2){
            transform: translateY(60px) ;
            opacity: 0;
        }
        .menu_container input:checked ~ .bt span:nth-child(3){
            transform: translateY(-18px) rotate(135deg);
        }

        .menu_container .menu{
            position: absolute;
            top: 0;
            left: 0;
            padding-top: 150px;
            width: 300px;
            height: calc(100vh - 150px);
            background-color: #ededed;
            list-style: none;
            transform: translateX(-150%);
            transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        }

        .menu_container input:checked ~ .menu{
            transform: translateX(0);
            box-shadow: 0.5px 10px rgba(0, 0, 0, 0.5);
        }

        .menu_container .menu li{
            font-size: 24px;
            margin: 10px 20px;
            text-align: right;
        }

        .menu_container .menu li a{
            display: block;
            padding-right: 20px;
            line-height: 60px;
            text-decoration: none;
            color: #232323;
            background-color: #f1f1f1;
            transition: all 0.3s ease;
        }

        .menu_container .menu li a:hover{
            color: #f1f1f198;
            background-color: var(--background-color);
        }
    </style>
</head>
<body>
    <div class="menu_container">
        <input type="checkbox" name="open" id="open">
        <label for="open" class="bt">
            <span></span>
            <span></span>
            <span></span>
        </label>
        <ul class="menu">
            <li style="--i:1">
                <a href="#">Home</a>
            </li>
            <li style="--i:2">
                <a href="#">About</a>
            </li>
            <li style="--i:3">
                <a href="#">Info</a>
            </li>
            <li style="--i:4">
                <a href="#">Contact</a>
            </li>
            <li style="--i:5">
                <a href="#">Show me more</a>
            </li>
        </ul>
    </div>
</body>
</html>